<template>
  <div>
      <van-nav-bar
        left-text="取消"
        @click-left="onClickLeft"
      />

      <van-panel title="请输入花语标题" desc="描述信息">
        <div></div>
      </van-panel>

      <van-uploader class="fil" v-model="fileList" multiple />
     <van-cell value="分享至" />
     
      <van-button type="warning" class="btn">发布</van-button>
      

  </div>

</template>

<script>
  export default {
    name:'Publish',
    data(){
      return {
        active:2,
        show:false,
        fileList: [
          { url: 'https://img.yzcdn.cn/vant/leaf.jpg' }
          // Uploader 根据文件后缀来判断是否为图片文件
          // 如果图片 URL 中不包含类型信息，可以添加 isImage 标记来声明
        ]
      }
    },
    methods: {
      showPopup() {
        this.show = true;
      },
       onClickLeft() {
         this.$router.go(-1);
       },

    },
    mounted(){
      this.$emit('getMsg',{active:this.active})
    }
  }
</script>

<style scoped="">
.si{
  width: 100%;
  height: 100%;
  background: pink;
}
.cell{
  width: 150px;
  background: yellow;
  margin-bottom: 50px;
  display: flex;
}
.tex{
  margin-top: 10px;
  margin-left: 15px;
}
.fil{
  margin-top: 20px;
  width: 270px;
}
.btn{
  width: 300px;
  margin-top: 170px;
  background: #ff6776;
  border: 0;
}

</style>
